package com.oa.item.controller;


import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.oa.item.biz.PlanBiz;
import com.oa.item.entity.Plan;

@Controller
@RequestMapping("/plan")
public class PlanController {
	@Resource
	private PlanBiz planBiz;
	
	@RequestMapping("find")
	public String find(String planName,Model model) throws Exception{
		String planName1=new String(planName.getBytes("ISO-8859-1"),"utf-8");
		Plan newPlan=planBiz.selectByPlanName(planName1);
		model.addAttribute("newPlan", newPlan);
		return "item/plan";
	}
}
